import { request } from '@ruifox-cms/utils'

// 获取所有预设站点
export function getPresetSiteList(params) {
    return request({
        url: '/station/api/presetSite/selectList',
        method: 'get',
        params
    })
}

// 添加预设站点
export function insertPresetSite(data) {
    return request({
        url: '/station/api/presetSite/insert',
        method: 'post',
        data
    })
}

// 修改预设站点
export function updatePresetSite(data) {
    return request({
        url: '/station/api/presetSite/update',
        method: 'post',
        data
    })
}

// 删除预设站点
export function deletePresetSite(data) {
    return request({
        url: '/station/api/presetSite/delete',
        method: 'post',
        data
    })
}

// 获取所有预设栏目
export function getPresetCategoryList(params) {
    return request({
        url: '/station/api/presetCategory/selectList',
        method: 'get',
        params
    })
}

// 添加预设栏目
export function insertPresetCategory(data) {
    return request({
        url: '/station/api/presetCategory/insert',
        method: 'post',
        data
    })
}

// 修改预设栏目
export function updatePresetCategory(data) {
    return request({
        url: '/station/api/presetCategory/update',
        method: 'post',
        data
    })
}

// 删除预设栏目
export function deletePresetCategory(data) {
    return request({
        url: '/station/api/presetCategory/delete',
        method: 'post',
        data
    })
}

// 获取栏目信息
export function getPresetCategoryDetail(params) {
    return request({
        url: '/station/api/presetCategory/selectById',
        method: 'get',
        params
    })
}
